package com.example.tms.bean;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.util.Date;

/**
 * 角色视图
 */
@IdClass(RoleViewId.class)
@Table(name = "role")
@Entity
public class RoleView {
    @Id
    private String yhid;
    private String zsxm;
    @Id
    private String jsid;
    private String jsmc;
    private String yhm;
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date urtime;

    public String getYhid() {
        return yhid;
    }

    public void setYhid(String yhid) {
        this.yhid = yhid;
    }

    public String getJsid() {
        return jsid;
    }

    public void setJsid(String jsid) {
        this.jsid = jsid;
    }

    public String getJsmc() {
        return jsmc;
    }

    public void setJsmc(String jsmc) {
        this.jsmc = jsmc;
    }

    public String getYhm() {
        return yhm;
    }

    public void setYhm(String yhm) {
        this.yhm = yhm;
    }

    public Date getUrtime() {
        return urtime;
    }

    public void setUrtime(Date urtime) {
        this.urtime = urtime;
    }

    public String getZsxm() {
        return zsxm;
    }

    public void setZsxm(String zsxm) {
        this.zsxm = zsxm;
    }
}
